package com.hxtec.polaris.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.persistence.*;
import lombok.Data;

/**
 * @author Caps
 * @date 2019/11/29
 */
@ApiModel(value = "com.hxtec.polaris.entity.ShopProductVariantImage")
@Data
@Table(name = "shop_product_variant_image")
public class ShopProductVariantImage implements Serializable {
    /**
     * 编号
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 商品id
     */
    @Column(name = "sku_id")
    @ApiModelProperty(value = "商品id")
    private Integer skuId;

    /**
     * 图片名称
     */
    @Column(name = "img_name")
    @ApiModelProperty(value = "图片名称")
    private String imgName;

    /**
     * 图片路径
     */
    @Column(name = "img_url")
    @ApiModelProperty(value = "图片路径")
    private String imgUrl;

    /**
     * 商品图片id
     */
    @Column(name = "product_img_id")
    @ApiModelProperty(value = "商品图片id")
    private Integer productImgId;

    /**
     * 是否默认
     */
    @Column(name = "is_default")
    @ApiModelProperty(value = "是否默认")
    private String isDefault;

    private static final long serialVersionUID = 1L;
}